function setaddress(address){
    
    let arr = address
    // console.log(arr);

    const poveir = arr.filter(item => item.TopID === 0)

    // console.log(poveir);

    poveir.forEach(item => {

        item.children = []
        // console.log(poveir);
        arr.forEach(e => {
            if(e.TopID === item.ID){
                item.children.push(e)
            }
        })
        // console.log(poveir);
        item.children.forEach(items => {

            items.children = []

            arr.forEach(i => {
            if(i.TopID === items.ID){
                items.children.push(i)
            }
        })
        })

    })
    return poveir

}
exports.setaddress = setaddress;